
const APP_DEBUG = process.env.DEV;

global.APP_DEBUG = APP_DEBUG;

const USER_TOKEN = 'user_token';

// const TEST_OPENID = 'oxkUGxPkZkwoe0IRSI_uFXpkcqm4';            //LJB的openid
const TEST_OPENID = 'oxkUGxO5FNznoNr0oMWsoAo66YVs'; // 有测肤记录,zeon的openid

const TEST_APPID = 'wx36bea992a3856d4a'; // appid

const HOST_NAME = window.location.origin;

const API_PREFIX = '/api/wechat/';

const VERSION = 'v2-3/';

const WECHAT_OPENID = `${HOST_NAME}/open-wechat/openid`; // 请求openid

const WECHAT_OAUTH = `${HOST_NAME}/open-wechat/oauth`; // 第三方授权

const WECHAT_JSSDK = `${HOST_NAME}/open-wechat/authorizer-js-sdk`; // 请求jssdk

const USER_INFO = `${HOST_NAME + API_PREFIX}get-wechat-user`; // 请求用户信息

const UPDATE_USER_INFO = `${HOST_NAME + API_PREFIX}update-wechat-user`; // 修改用户个人信息

const SKIN_RECORD = `${HOST_NAME + API_PREFIX}skin-record`; // 肤质检测数据

const USER_LOCATION = `${HOST_NAME + API_PREFIX}wechat-user-location`; // 提交用户地理位置

const NEW_SKIN_RECORD = `${HOST_NAME + API_PREFIX + VERSION}skin-record`; // v2.3版肤质检测数据

const CHANGE_LANG = `${HOST_NAME}/api/common/switch-language`; // 改变语言

const H5_LOGIN = `${HOST_NAME + API_PREFIX}patch-phone`; // 普通网页登陆

const USER_FAVORS = `${HOST_NAME + API_PREFIX}v2-3/user-favors`; // 用户收藏

const DELETE_USER_FAVORS = `${HOST_NAME + API_PREFIX}v2-3/user-favors-delete`; // 用户收藏

const RECOMMEND_PRODUCT = `${HOST_NAME + API_PREFIX}recommend-product`; // 商品推荐

// const RECOMMEND_PRODUCT_V2 = `${HOST_NAME + API_PREFIX}recommend-product-v2`; // 商品推荐

const INDEX_GROUP_BY_CATEGORY_ID = `${HOST_NAME + API_PREFIX}recommend-product-v3`; // 商品推荐

const STORE_LIST = `${HOST_NAME + API_PREFIX}v2-3/store-list`;

const BONUS = `${HOST_NAME}/api/app-web-view/bonus`; // web view

const WECHAT_USER_BONUSES = `${HOST_NAME}/api/app-web-view/query-wechat-user-bonuses`;

const WECHAT_BONUS = `${HOST_NAME + API_PREFIX}bonus`; // h5 微信端 红包记录

const ALI_ACCOUNT = `${HOST_NAME + API_PREFIX}wechat-user-ali-account`; // 阿里账号

const COUPON = `${HOST_NAME + API_PREFIX}v3-1/coupon-card`; // 优惠券index

export default {

	APP_DEBUG,

	USER_TOKEN,

	TEST_OPENID,

	TEST_APPID,

	WECHAT_OPENID,

	WECHAT_OAUTH,

	WECHAT_JSSDK,

	USER_INFO,

	UPDATE_USER_INFO,

	SKIN_RECORD,

	USER_LOCATION,

	NEW_SKIN_RECORD,

	CHANGE_LANG,

	H5_LOGIN,

	USER_FAVORS,

	DELETE_USER_FAVORS,

	RECOMMEND_PRODUCT,

	STORE_LIST,

	BONUS,

	WECHAT_USER_BONUSES,

	WECHAT_BONUS,

	ALI_ACCOUNT,

	INDEX_GROUP_BY_CATEGORY_ID, // 商品推荐页

	COUPON,
};
